Skip to content

Fix StableHLO DSL export for constants and reductions#664

Merged
michalharakal merged 1 commit into
developfrom
codex/fix-issue-663-stablehlo-export
Jun 5, 2026
Merged

Fix StableHLO DSL export for constants and reductions#664
michalharakal merged 1 commit into
developfrom
codex/fix-issue-663-stablehlo-export

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

Rebind HLO generator sample inputs to the tracing context so tensor-bound forward passes emit real StableHLO ops. Preserve symbolic DAG constant values and lower them as embedded constants instead of function arguments. Also infer reduction output shapes so reduced dimensions are dropped before downstream shape ops.

Closes #663

Rebind HLO generator sample inputs to the tracing context so tensor-bound
forward passes emit real StableHLO ops. Preserve symbolic DAG constant values
and lower them as embedded constants instead of function arguments. Also infer
reduction output shapes so reduced dimensions are dropped before downstream
shape ops.

Closes #663
@michalharakal michalharakal merged commit 33ab6eb into develop Jun 5, 2026
6 checks passed
@michalharakal michalharakal deleted the codex/fix-issue-663-stablehlo-export branch June 5, 2026 12:38
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

📖 Documentation Preview

The documentation has been built successfully for this PR.

Generated Files:

  • Operator documentation: docs/modules/operators/_generated_/
  • JSON schema output: operators.json

Artifacts:

  • Download the documentation-preview-664 artifact to view the complete documentation locally.

This comment will be updated automatically when the PR is updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StableHLO export from the DSL produces no usable module (0.27.0): tracing emits no ops; DAG externalizes constants & keeps reduced dim

1 participant